package com.brillilab.dao.mapper.experiments;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.experiments.ExperimentStep;
import com.brillilab.domain.vo.experiments.ExperimentTipsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实验步骤 Mapper 接口
 * </p>
 *
 * @author XuZue
 * @since 2019-04-16
 */
public interface ExperimentStepMapper extends BaseMapper<ExperimentStep> {

    List<ExperimentStep> selectListByStepIds(@Param("list") List<Long> stepIds);

    ExperimentTipsVo selectExperimentTipsVo(@Param("stepId") Long stepId);

    int deleteTips(Long stepId);

    int logicallyDeleteBatchByExperimentId(@Param("experimentId") Long experimentId);

    int insertBatch(List<ExperimentStep> newSteps);
}
